Northwind Test with Yukon

Alphabetical list of products View

Owner

dbo

Creation Date

10-07-2003 10:31:35

Remarks


Columns

NameTypeLengthIsNullableCollation
ProductIDint4 
ProductNamenvarchar80SQL_Latin1_General_CP1_CI_AS 
ProductNamesysname80SQL_Latin1_General_CP1_CI_AS 
SupplierIDint4 
CategoryIDint4 
QuantityPerUnitnvarchar40SQL_Latin1_General_CP1_CI_AS 
QuantityPerUnitsysname40SQL_Latin1_General_CP1_CI_AS 
UnitPricemoney8 
UnitsInStocksmallint2 
UnitsOnOrdersmallint2 
ReorderLevelsmallint2 
Discontinuedbit1 
CategoryNamenvarchar30SQL_Latin1_General_CP1_CI_AS 
CategoryNamesysname30SQL_Latin1_General_CP1_CI_AS 

View Definition

create view "Alphabetical list of products" AS
SELECT Products.*, Categories.CategoryName
FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID
WHERE (((Products.Discontinued)=0))